corresponding.Modify its configuration file/etc/sysconfig/flanneld content as follows:# Flanneld configuration options # ETCD URL location. Point the server where Etcd runsflannel_etcd_endpoints="https://10.10.90.105:2379,https://10.10.90.106:2379,https://10.10.90.107:2379"# ETCD config key. This is the configuration key, which flannel queries# for address range Assignment#flannel_etcd_prefix="/atomic.io/network"Flannel_etcd_prefix="/kube-centos/netw
The previous blog has introduced the deployment of a simple kubernetes cluster, but the cluster environment does not have a reasonable network configuration. In the actual production to realize the communication of the components in the cluster, it is necessary to use the network plug-in provided by the third party.Flannel binary Installation1. Download Fannel componentswget https://github.com/coreos/flannel
Direct start:5.1, Flannel IntroductionFlannel is an overlay networking (overlay network) tool designed by the CoreOS team for Kubernetes to help each kuberentes host with CoreOS have a complete subnet. Kubernetes assigns a separate IP address to each pod, which makes it easier for Containers in the same pod to connect to each other, and
Configuring the Flannel serviceRepeat the k8s installation section Flanneld related content
Step 1:
Nohup./flanneld--listen=0.0.0.0:8888 >>/opt/kubernetes/logs/flanneld.log 2>1 110 Start server process on host
Nohup./flanneld-etcd-endpoints=http://192.168.161.110:2379-remote=192.168.161.110:8888 >>flanenl.log 2> 1 #各minons结点上启动flanneld
/** set up subnets on the ETCD server * *Etcdctl set/coreos.com/netw
This is a creation in
Article, where the information may have evolved or changed.
"Editor's note" Overlay network is one of the important solutions of Kubernetes network model, and flannel, as a mature solution for anxiety, can build overlay network based on a variety of backend, which is based on the Vxlan of Linux kernel Backend has obvious advantages in both performance and ease of use.
"Shanghai stati
Detailed guide for manual installation and deployment of Kubernetes on Ubuntu, ubuntukubernetes
Background
Two Ubuntu16.04 servers: 192.168.56.160 and 192.168.56.161.
Kubernetes version: 1.5.5
Docker version: 1.12.6
Etcd version: 2.2.1
Flannel version: 0.5.6
Among them, 160 servers are both master nodes of Kubernetes a
under the Apache License, Version2.0(The"License"); ThisFile exceptinchcompliance with the license.# obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0# # unless required by applicable law or agreed toinchwriting, software# distributed under the License isDistributed on an" as is"basis,# without warranties or CONDITIONS of any KIND, either express or implied.# see the License forThe specific language governing permissions and# limitations under the license.# Download t
address. The container in the pod, called the app container, uses--net=container when it is created: to share the network space of the pod container.For example, the author has a kubernetes node host PT-169124, with an IP address of 192.168.169.124. The author's environment uses flannel as the bridge network drive of Docker, with ifconfig command can see flannel
As the Docker community continues to grow, CoreOS, Kubernetes, Hashicorp and other projects flourish. Flannel as an open-source networking component for containers, it also attracts engineers ' attention. The flannel is simple to use and can be configured with a Multi-host network connection only as a consistent store with ETCD belonging to the CoreOS family.Netw
different ports supported by Linux and enables many-to-many communications like switches.
Routing : The Linux system contains a complete routing feature that uses the routing table to determine where to send the IP layer when it processes the data to be sent or forwarded.
Docker Eco-Technology stackShows the location of the Docker network throughout the Docker ecosystem stack:
Docker Network implementation
single-Machine network mode : Bridge, Host, Container, None, here specif
This is a creation in
Article, where the information may have evolved or changed.
Docker's Network Solution
The flannel mode of k8s
Flannel Mode principle
Advantages and disadvantages of flannel mode
Deployment and Validation
Kubernets's network, in terms of design, is "flat, direct", which requires:
All containers can com
I. Introduction to the EnvironmentSecond, the environment constructionEnvironment construction here will not repeat, please refer to the previous article!http://blog.51cto.com/hostman/2103503Here we start by configuring flannel information into the databaseCreate a file Flannel-config.json, write the following:Cat >> Flannel-config.json {"Network": "10.10.0.0/16"
In the previous section we deployed ETCD, and this section installs and configures flannel. Build Flannel
Flannel do not have a ready-made executable file available, you must build it yourself, the most reliable way is to build in the Docker container. But for build Docker mirror hosting in Gcr.io, domestic may not be directly accessible, for the convenience of e
Resources:
Flannel_ Baidu Search
Flannel home, documents and downloads-container cluster subnet-open source China community
Overlay network analysis based on flannel under Docker-open development experience Library
Flannel/common.go at Master Coreos/flannel
This is a creation in
Article, where the information may have evolved or changed.
Try a few more popular SDN, feel flannel or relatively easy to use, here simply record a bit.
virtualbox,3 machines are used, respectively:
Genesis: inet 192.168.99.103/24 BRD 192.168.99.255 scope Global Dynamic ENP0S3
Exodus: inet 192.168.99.105/24 BRD 192.168.99.255 scope Global Dynamic ENP0S3
Leviticus: inet 192.168.99.106/24 BRD 192.168.99.255 scope Global Dynamic EN
service designed by the CoreOS team for kubernetes, which simply means that the Docker container created by the different node hosts in the cluster has a unique virtual IP address for the complete cluster. It also creates an overlay network between these IP addresses, which, through this overlay network, passes the packets intact to the target container (Overlay).Here is a schematic diagram of its network:As you can see,
means to increase the network card, del means to release the network card
Cni_containerid: Container ID
Cni_netns: Container Network namespace file location
Cni_args: Additional parameters to pass
Cni_ifname: Set the container NIC name, such as Eth0
Because of this, the implementation of the code is very easy to expand, in addition to the Macvlan of the bridge, and other basic implementation, there are a large number of third-party implementations to choose from, including
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.